package com.shanghaionstar.user.iview;

import android.os.Bundle;

import com.onstar.cn.smart.BaseResponse;
import com.onstar.cn.smart.entity.ServiceItem;

import java.util.List;

/**
 * Created by Yonglang Hong on 2016/9/26.
 */
public interface IOptView {
    /**
     * 开启驾驶评分成功
     */
    void onTurnOnSuccess(BaseResponse response);

    /**
     * 开启驾驶评分成功
     */
    void onTurnOnSuccess(BaseResponse response, Bundle bundle);

    /**
     * 关闭驾驶评分成功
     */
    void onTurnOffSuccess(BaseResponse response);

    /**
     * 操作驾驶评分失败
     */
    void onFailed(Throwable throwable);

    /**
     * 开启车况检测报告协议成功
     */
    void onTurnOnCarAssessSuccess(BaseResponse response);

    /**
     * 关闭车况检测报告协议成功
     */
    void onTurnOffCarAssessSuccess(BaseResponse response);

    /**
     * 操作车况检测报告协议失败
     */
    void onTurnCarAssessFailed(Throwable throwable);

    /**
     * 显示车况检测报告协议
     *
     * @param show
     */
    void showCarAssessAgreement(Boolean show);

    void onGetServiceItem(List<ServiceItem> items);

    void onSwitchService(String name,boolean in,boolean isSuc,Throwable throwable);
}
